package com.cskaoyan.catmall.model.bo;

import com.cskaoyan.catmall.model.vo.WxCommentPostVo;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 创建日期: 2022-01-10-16-32
 * author : XGQ
 * description: 评论提交
 */

@NoArgsConstructor
@Data
public class WxCommentPostBo {

    private Integer id;
    @Min(value = 0,message = "只能为正整数")
    private Integer valueId;
    private Integer type;
    @NotNull(message = "内容不为空")
    private String content;
    private Integer userId;

    private Boolean hasPicture;
    private String[] picUrls;
    private Integer star;
    @JsonFormat
    private String addTime;
    @JsonFormat
    private String updateTime;


}
